package com.lagou.edu.controller;

import com.lagou.edu.service.ResumeServiceFeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author stevejson
 */
@RestController
@RequestMapping("/autodeliver")
public class AutoDeliverController {
    @Resource
    private ResumeServiceFeignClient resumeServiceFeignClient;

    @GetMapping("/checkState/{userId}")
    public Integer findResumeOpenState(@PathVariable("userId") Long userId) {
        //指定服务名就行
        return resumeServiceFeignClient.getDefaultResumeStatus(userId);
    }
}
